<?php
/**
 *
 * Author: Administrator
 * Date: 2018/1/16
 * Time: 9:42
 * Created by PhpStorm.
 */


// 拓声官网路由组 首页、核心技术、产品、视频、案例、企业动态、关于我们
Route::group(['middleware'=>'lang', 'namespace'=>'Home'], function () {

    // 首页
    Route::get('/', ['as' => 'home', 'uses' => 'HomeController@index']);

    // 产品中心
    Route::get('/production', ['as'=>'production' ,'uses' => '\App\Http\Controllers\WebPage\Seo\ProductionController@index']);

    // 解决方案
    Route::get('/solution-case', ['as'=>'solution-case' ,'uses'=> 'SolutionCaseController@returnView']);

    // 工程案例
    Route::get('/project-case', ['as'=>'project-case' ,'uses'=> 'ProjectCaseController@returnView']);

    // 视频专区
    Route::get('/video', ['as'=>'video' ,'uses'=> 'VideoController@returnView']);

    // 企业动态
    Route::get('/news', ['as'=>'news' ,'uses'=> 'CompanyNewsController@returnView']);

    // 关于我们
    Route::get('/about', [ 'as'=>'about' ,'uses' => 'AboutUsController@index']);

    // 文章详情 TODO TS 应该没有这个把
//    Route::get('/news-detail', ['as'=>'news-detail' ,'uses'=> 'NewsController@returnView']);

    //产品 TODO 转移到 SEO 控制器
//    Route::staticView('/production', 'production');

    // 404
    Route::get('/**', ['as' => '404', 'uses' => 'Home\HomeController@errorPage']);

});
